#if !defined(AFX_GENCTRLBASE_H__ED2C0325_54E5_4FE8_BF4E_2025740C628C__INCLUDED_)
#define AFX_GENCTRLBASE_H__ED2C0325_54E5_4FE8_BF4E_2025740C628C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GenCtrlBase.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CGenCtrlBase window

#include <vector>

class CGenCtrlBase : public CWnd
{
// Construction
public:
	//CGenCtrlBase(){};
	CGenCtrlBase(CRect& rc, CWnd* parent, UINT id, CString caption = _T(""));
	UINT m_ID;

// Attributes
public:
	virtual HRESULT OnMouseMoveInClient(UINT nFlags, CPoint point);
	virtual HRESULT OnMouseMoveOutClient();
	virtual HRESULT OnMouseMoving(UINT nFlags, CPoint point);
	virtual HRESULT DrawCtrlPanel(CDC* pDC);
	virtual HRESULT LeftButtonDown(UINT nFlags, CPoint point);
	virtual HRESULT LeftButtonUp(UINT nFlags, CPoint point);
	//virtual void ResizeClientRect();
	//virtual HRESULT CreateCtrl(CWnd* parent);

// Operations
public:
	CString SetCaption(CString caption);
	CString GetCaption();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGenCtrlBase)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CGenCtrlBase();
protected:
	CGenCtrlBase(){};

	CRect m_rcClient;
	BOOL m_bMouseInClient;
	UINT m_uiState;
	CString m_strCaption;
	BOOL m_bLeftBtnDown;
	//CWnd* m_pwndParent;


	// Generated message map functions
protected:
	//{{AFX_MSG(CGenCtrlBase)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	afx_msg LRESULT OnMouseLeave(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()

	
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GENCTRLBASE_H__ED2C0325_54E5_4FE8_BF4E_2025740C628C__INCLUDED_)
